package org.xdq.责任链模式;

public class TeamLeader extends Handler {
    public TeamLeader(Handler next) {
        super(next);
    }

    @Override
    public void handle(Request req) {

        System.out.println("组长同意！");

        if(req.getDays()>1){
            next.handle(req);
        }
    }
}
